package com.winner.lps.modules.data;

import java.util.List;

/**
 * @author chengshaowei
 * @version V1.0
 * @Title: BaseData.java
 * @Description: (rest返回数据封装)
 * @date 2016/11/14 10:06
 */
public class BaseData<T> {

    private T data;         //单条数据

    private List<T> datas;  //多条数据

    private int datasCount;//多条数据总数量

    private String code;    //状态码

    private String tip;     //提示信息

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    public List<T> getDatas() {
        return datas;
    }

    public void setDatas(List<T> datas) {
        this.datas = datas;
    }

    public int getDatasCount() {
        return datasCount;
    }

    public void setDatasCount(int datasCount) {
        this.datasCount = datasCount;
    }
}
